package org.beetl.json;

public class OutputNodeKey {
	private Object  key;
	private boolean isIndex;
	public OutputNodeKey(Object key,boolean isIndex){
		this.key = key;
		this.isIndex = isIndex;
	}
	
	public OutputNodeKey(Object key){
		this(key,false);
	}
	public Object getKey() {
		return key;
	}
	public void setKey(Object key) {
		this.key = key;
	}
	public boolean isIndex() {
		return isIndex;
	}
	public void setIndex(boolean isIndex) {
		this.isIndex = isIndex;
	}
	
	public int hashCode(){
		return  key.hashCode();
	}
	
	public String toString(){
		return key.toString();
	}
	
}
